package com.itheima.service.impl;

import com.itheima.entity.Account;
import com.itheima.service.AccountService;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
// 告诉IOC容器，实例化当前类的对象，id as2
@Service("as2")
public class AccountServiceImpl2 implements AccountService {
    @Override
    public void save(Account account) {
       System.out.println("as2 AccountServiceImpl2："+account);
    }
}